package com.dabao.service;

import com.dabao.query.BaseQuery;

import java.util.List;

/**
 * Created by card on 16/4/15.
 */
public interface BaseService<T, Q extends BaseQuery> {
    int insert(T t);

    int update(T t);

    T selectById(Integer id);

    List<T> selectList(Q q);

    int selectCount(Q q);

    int delete(Integer id);
}
